package com.xiaohong.file.time;

import com.xiaohong.file.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


/**
 * @author xiaohong
 * @Description 定时爬取最新内容存入数据库并更新redis
 * @date 2020/12/4 0004 11:01
 */
@Component
public class MySqlTask {

    @Autowired
    private FileService fileService;

    /**
     * 每天的15:10执行一次，更新股票数据
     */
    @Scheduled(cron = "0 50 19 * * ?")
    public void gupiaoTask() throws Exception {

    }


}
